using System;
using XTCast.Mp3.Encode;
using TerastarLib.Utils;

namespace XTCast.Mp3
{
	/// <summary>
	/// Summary description for MP3Silence.
	/// </summary>
	public class MP3Silence
	{
		public MP3Silence()
		{
			FifoStream fs = new FifoStream();
			Mp3Writer mp3Bin = new Mp3Writer(fs,new XTCast.Wave.WaveFormat(44100,16,2),96);
			mp3Bin.Write(new Byte[mp3Bin.GetOptimalBufferSize()*8]);
			mp3Bin.Close();
			MP3FrameReader mp3fs = new MP3FrameReader(fs);
			//silBuffer = bm.LoadBuffer(mp3fs,Track.Empty);
			mp3Bin.Close();
			fs.Close();
		}
	}
}
